package net.hn.hnms.biz.blueprint.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

/**
 * @author wangjingrui
 * @date 2022/9/13 11:23
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@Table(name = "file_type_info")
public class FileTypeInfo extends BaseModel {

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.ASSIGN_UUID)
    private String fileTypeId;

    @ApiModelProperty(value = "文件类型")
    @Length(max = 100, message = "文件类型长度不能超过100个字符")
    @NotBlank(message = "文件类型不能为空")
    private String fileTypeName;

    @ApiModelProperty(value = "煤矿编码")
    private String mineCode;
}
